
export default {
    data() {
        return {
            allDateList: [],
            dateCellWidth: 40,
            cellWidth: 100,
            cellHeight: 36
        };
    },
    methods: {
        setCheckStyle({ id }) {
            return this.checkArr.includes(id) ? 'rgb(255, 176, 143)' : '';
        },
        setCellStyle(item) {
            let styleItem = {};
            let align = '';
            if (item.align === 'left') {
                align = 'flex-start';
            } else if (item.align === 'center') {
                align = 'center';
            } else if (item.align === 'right') {
                align = 'flex-end';
            }
            if (item.type) {
                styleItem = {
                    width: `${item.width}px`,
                    height: `100%`,
                    justifyContent: align,
                    padding: '0 8px'
                };
            } else {
                styleItem = {
                    width: `${item.width}px`,
                    height: `100%`,
                    justifyContent: align,
                    padding: '0 8px'
                };
            }
            return styleItem;
        }
    }
};
